home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / print / masdir54.arj / DRDOS.EXE / SDLFINIS.BAT < prev    next >
DOS Batch File  |  1991-02-15  |  3KB  |  72 lines

  1. ECHO Off
  2. : SDLFINIS.BAT for DR DOS Version 5.0
  3. IF NOT .%3 == . GOTO PARMSOK
  4. ECHO Please start the setup program by running SDLSETUP.
  5. GOTO QUIT
  6. :PARMSOK
  7. Echo * * *
  8. :TITLE ... now another check on the SDL version to avoid problems.
  9. IF NOT .%1 == .54 GOTO VERSION
  10. IF NOT .%2 == .55 GOTO VERSION
  11. sdl_get B
  12. ECHO * * *
  13. ECHO This is the last section:
  14. ECHO * * *
  15. ECHO You may enter your own titles on the first two header lines,
  16. ECHO or restore the original lines.  These titles will display or not
  17. ECHO depending on the Hdr default setting.  They can be toggled on
  18. ECHO or off with the /H option.  If you have changed the titles and
  19. ECHO want to restore the original, select Y.  Changed or restored
  20. ECHO titles do not have the highlighted capital letters.
  21. ECHO * * *
  22. : ****************************
  23. Echo M100,+%3,fd>>sdlsetup.txt
  24. sdl_get N "Do you want to change the titles (N,y,cr)? "
  25. if errorlevel 90 goto end
  26. if NOT errorlevel 89 goto end
  27. :REM Better make another check on SDL Version (see REM below).
  28. SDL /!
  29. IF NOT ERRORLEVEL %1 GOTO VERSION
  30. IF ERRORLEVEL %2 GOTO VERSION
  31. REM Check the size of SDL.COM
  32. sdl_get F SDL.COM
  33. IF NOT ERRORLEVEL 1 GOTO :SIZEOK
  34. REM The size must match what is passed in %3, else version is incorrect.
  35. IF NOT .%3 == .%GET% GOTO VERSION
  36. :SIZEOK But we must have the following file...
  37. IF NOT EXIST SDLTITLE.COM GOTO NOTITLE
  38. ECHO * * *
  39. ECHO Your two title lines are now...
  40. SDL /H-/C-
  41. ECHO To restore the original titles, simply press ENTER at each prompt.
  42. SDLTITLE
  43. REM Positive errorlevel means SDLTITLE did not work for some reason.
  44. IF ERRORLEVEL 1 GOTO NOTITLE
  45. : ***************************
  46. ECHO RSDLTITLE.TXT,100>>SDLSETUP.TXT
  47. : ECHO L 103>>SDLSETUP.TXT
  48. : ECHO N SDL.COM>>SDLSETUP.TXT
  49. : ECHO R CX>>SDLSETUP.TXT
  50. :END
  51. REM The value in the next line is critical to the SDL Version!
  52. : ***********************************
  53. ECHO M0fd,+%3,0>>SDLSETUP.TXT
  54. ECHO WSDL.COM,0,%3-1>>SDLSETUP.TXT
  55. Echo Q>>SDLSETUP.TXT
  56. SDLDEBUG
  57. REM BATch commands end here, the rest are error messages.
  58. :NOTITLE
  59. ECHO The file SDLTITLE.COM was not found or did not complete properly.
  60. Echo If you want to customize the titles in SDL.COM you must copy
  61. Echo SDLTITLE.COM from the original MASDIR disk and run SDLSETUP again.
  62. GOTO END
  63. :VERSION
  64. ECHO The version of SDL is incompatible with this version of SDLSETUP.
  65. Echo Please copy compatible versions from your original disk and try again.
  66. :QUIT
  67. pause
  68. IF EXIST SDLSETUP.TXT ERASE SDLSETUP.TXT
  69. if exist menu.bat menu
  70. SET GET=
  71. ECHO Exiting to DOS ...
  72.